<?php
/* @var $this BlocksController */
/* @var $model Blocks */
?>

<?php
$this->breadcrumbs = array(
	'Blocks' => array('index'),
	$model->blockId,
);
?>

<div class="row-fluid">
    <div class="span12">
        <div class="grid simple">

			<div class="grid-title no-border">
				<br />
			</div>
			<div class="grid-body no-border">

				<?php
				$this->widget('zii.widgets.CDetailView', array(
					'htmlOptions' => array(
						'class' => 'table table-striped table-condensed table-hover',
					),
					'data' => $model,
					'attributes' => array(
						'blockId',
						array(
							'name' => 'blockWidget',
							//'value' => BlocksController::$widgetList[$model->blockWidget],
							'type' => 'raw',
						),
						array(
							'name' => 'blockAction',
							//'value' => BlocksController::$actionsList[$model->blockAction],
							'type' => 'raw',
						),
						'blockUrl',
						array(
							'name' => 'blockPosition',
							//'value' => BlocksController::$posList[$model->blockPosition],
							'type' => 'raw',
						),
						'blockOrder',
						'blockContent:html',
						array(
							'name' => 'blockActive',
							'value' => ($model->blockActive == "1") ? ("Активна") : ("Отключена"),
							'type' => 'raw',
						),
					),
				));
				?>
			</div>
        </div>	
    </div>
</div>